home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.000 / linuxcon / linuxconf-1.6 / main / Makefile < prev   
Makefile  |  1996-08-04  |  2KB  |  64 lines

  1. CURDIR=main
  2. SBIN=/sbin
  3. BIN=/bin
  4. all: main
  5. OBJS =  linuxconf.o _dict.o
  6. LDF = -g $(OPTDYNAMIC)
  7. LIBS_PROJECT = ../askrunlevel/askrunlevel.a ../netconf/netconf.a \
  8.     ../xconf/xconf.a ../translate/translate.a ../misc/misc.a \
  9.     ../dialog/dialog.a
  10. LIBS =  $(LIBS_PROJECT) -lncurses
  11.  
  12. LOCAL_INSTALLLADR=localinstall_ladr
  13. LOCAL_INSTALL=localinstall
  14. LOCAL_CLEAN=localclean
  15. localclean:
  16.     rm -f linuxconf
  17.  
  18. include ../rules.mak
  19.  
  20. proto:
  21.     proto -m0+ *.c
  22.  
  23. main: main.obt $(OBJS) $(LIBS_PROJECT)
  24.     $(GCC) $(LDF) -o linuxconf $< $(OBJS) $(LIBS)
  25.  
  26. localinstall: msg.eng
  27.     install -m 4755 -o root -g bin linuxconf $(BIN)/linuxconf
  28.     ln -sf $(BIN)/linuxconf $(BIN)/netconf
  29.     ln -sf $(BIN)/linuxconf $(BIN)/xconf
  30.     ln -sf $(BIN)/linuxconf $(BIN)/lpdconf
  31.     ln -sf $(BIN)/linuxconf $(BIN)/fsconf
  32.     ln -sf $(BIN)/linuxconf $(SBIN)/askrunlevel
  33.     ln -sf $(BIN)/linuxconf $(SBIN)/fixperm
  34.     ln -sf $(BIN)/linuxconf $(SBIN)/mailconf
  35.     ln -sf $(BIN)/linuxconf $(SBIN)/uucpconf
  36.     ln -sf $(BIN)/linuxconf $(SBIN)/dnsconf
  37.     ln -sf $(BIN)/linuxconf $(BIN)/userconf
  38.     install -m 444 -o root -g bin /tmp/linuxconf-msg-$(LINUXCONF_REV).eng $(HELP)
  39.  
  40. # Installation in the L.A.D.R directories
  41. localinstall_ladr: msg.eng
  42.     install --strip -m 4755 -o root -g bin linuxconf $(BIN_LADR)/linuxconf
  43.     ( cd $(BIN_LADR); \
  44.         ln -sf linuxconf netconf; \
  45.         ln -sf linuxconf xconf; \
  46.         ln -sf linuxconf fsconf; \
  47.         ln -sf linuxconf lpdconf; \
  48.         ln -sf /bin/linuxconf ../sbin/askrunlevel; \
  49.         ln -sf /bin/linuxconf ../sbin/fixperm; \
  50.         ln -sf /bin/linuxconf ../sbin/mailconf; \
  51.         ln -sf /bin/linuxconf ../sbin/uucpconf; \
  52.         ln -sf /bin/linuxconf ../sbin/dnsconf; \
  53.         ln -sf linuxconf userconf; \
  54.         ln -sf linuxconf passwd; \
  55.         ln -sf linuxconf hostname; \
  56.         ln -sf linuxconf domainname; \
  57.     )
  58.     install -m 444 -o root -g bin /tmp/linuxconf-msg-$(LINUXCONF_REV).eng $(HELP_LADR)
  59.  
  60. # Test program
  61.  
  62.  
  63.  
  64.